package com.example.trackcircuitdiagnosis.entity;

import io.swagger.v3.oas.annotations.media.Schema;


 import jakarta.persistence.*;
import java.sql.Timestamp;

/**
 * @author 23639
 */
@Entity
@lombok.Data
@Table(name = "data", schema = "track_circuit_diagnosis", catalog = "")
@Schema(name = "Data", description = "数据对应表")
public class DataEntity {
    // 区域标识
    @Column(name = "area_id")
    @Schema(description = "区域标识")
    private int areaId;

    // 数据时间戳
    @Column(name = "data_time")
    @Schema(description = "数据时间戳")
    private Timestamp dataTime;

    // 数据的唯一标识符
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @Column(name = "data_id")
    @Schema(description = "数据的唯一标识符")
    private int dataId;
}
